package com.happyfamily.springboot.crowdsourcingplatform.service.pan;

import com.happyfamily.springboot.crowdsourcingplatform.base.result.Results;
import com.happyfamily.springboot.crowdsourcingplatform.model.Orders;

import java.util.List;

/**
 * @Author Administrator
 * @create 2020/02/29 12:14
 */
public interface SuccessCaseService
{

	/**
	 * 查询所有已经交易成功的订单
	 * @param offset
	 * @param limit
	 * @return
	 */
	Results<Orders> getAllOrdesByPage(Integer offset, Integer limit);


	/**
	 * 根据订单id修改成功案例数据
	 * @param oid
	 * @param successcase
	 */
	int updateSuccessCase(Integer oid, Integer successcase);


	/**
	 * 获取成功案例的数据
	 * @return
	 */
	List<Orders> getAllFindOrders();
}
